﻿using System.Text;

namespace RuTrackerLib
{
    public static class QueryStringEncryptor
    {
        public static string Encrypt(string queryString)
        {
            return StringEncryptor.Encrypt(queryString);
        }

        public static string Decrypt(string base64String)
        {
            StringBuilder result = new StringBuilder(StringEncryptor.Decrypt(string.IsNullOrEmpty(base64String) ? base64String : base64String.Replace(" ", "+")));
            result.Replace("&amp;", "&");
            return result.ToString();
        }
    }
}